.container {
  display: flex;
  height: 100vh;
  width: 100vw;
  background: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
}

.showMenuButton {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 20px;
  
  &:hover {
    background: #fff;
  }
}

.left {
  width: 300px;
  height: 100%;
  box-sizing: border-box;
  background: #f7f8fc;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
  border-right: 1px solid #e8e8e8;
}

.right {
  flex: 1;
  position: relative;
  max-width: calc(100% - 300px);
  padding: 15px;
  box-sizing: border-box;
  background-position: 0 100%;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 平板设备适配 */
@media (max-width: 1024px) {
  .left {
    width: 260px;
  }
  
  .right {
    max-width: calc(100% - 260px);
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left {
    width: 85%;
    max-width: 300px;
    height: 100%;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    
    &.show {
      transform: translateX(0);
    }
  }

  .right {
    max-width: 100%;
    padding: 10px;
    height: 100vh;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
  .right {
    padding: 8px;
  }
  
  .showMenuButton {
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
  }
  
  .left {
    width: 90%;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .container {
    background: #1f1f1f;
  }
  
  .left {
    background: #141414;
    border-right-color: #303030;
  }
  
  .showMenuButton {
    background: rgba(30, 30, 30, 0.9);
    color: #fff;
    
    &:hover {
      background: #1f1f1f;
    }
  }
}
